package com.mzx.javase.thread;

/**
 * 类描述：
 *
 * @ClassName PriorityTest
 * @Description TODO
 * @Author 马子鑫
 * @Date 2022/8/1 17:08
 * @Version 1.0
 */
public class PriorityTest {
    public static void main(String[] args) {
        PriorityThread p1 = new PriorityThread();
        PriorityThread p2 = new PriorityThread();
        p1.setPriority(Thread.MAX_PRIORITY);
        p1.setName("p1");
        p2.setPriority(Thread.MIN_PRIORITY);
        p2.setName("p2");

        PriorityThread p3 = new PriorityThread();
        p3.setName("p3");
        p1.start();
        p2.start();
        p3.start();
    }
}
